package indi.kider.server.applet.service;

import indi.kider.common.model.apabus.LeaseBus;
import indi.kider.common.model.apabus.LeaseBusVo;
import indi.kider.common.model.apabus.LeaseModel;

/**
 * 换房和退房业务
 *
 * @author wangjingjing
 * @create 2018-10-20 下午4:36
 **/
public interface LeaseBusService {

    /**
     * 业务申请
     *
     * @param leaseModel
     * @return
     */
    boolean applyfor(LeaseModel leaseModel, Integer leaseType) throws Exception;

    /**
     * 查询业务申请进度
     *
     * @param rentId
     * @return
     */
    LeaseBus queryStateByTenantId(Long rentId);

    LeaseBus trucLeaseModel(LeaseModel leaseModel, Integer leaseType);

    LeaseBusVo trucLeaseBus(LeaseBus leaseBus);
}
